package com.itheima.day02.ZuoYe.ZuoYe_1;

import com.itheima.day02.ZuoYe.ZuoYe3_7.Person;

public class Manager extends People {
    private double bonus;

    public Manager(String name, int id, double salary, double bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("工号为"+getId()+"的"+getName()+"的项目经理，拿着"+getSalary()+"的工资和"+getBonus()+"的奖金，正在盯着程序员写代码。");
    }

    public Manager() {
    }

    public Manager(double bonus) {
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }
}
